import Vue from 'vue'
import App from './App.vue'

Vue.config.productionTip = false

import Box from './views/box.vue'
import Box1 from './views/box1.vue'
import Box2 from './views/box2.vue'
import Box3 from './views/box3.vue'

import VueRoter from 'vue-router'

Vue.use(VueRoter)

let routes = [{
    path: '/box',
    component: Box
  },
  {
    path: '/box1',
    component: Box1
  },
  {
    path: '/box2',
    component: Box2
  },
  {
    path: '/box3',
    component: Box3
  },
]

let router = new VueRoter({
  routes
})

new Vue({
  render: h => h(App),
  router
}).$mount('#app')